import {
    http
} from '@/utils/request';

// 首页 
export const wordIndex = async (data) => {
    let res = await http.post({
        url: '/word/index',
        data
    })
    return res
}

// 单词识记
export const wordpackagestatus = async (data) => {
    let res = await http.post({
        url: '/word/wordpackagestatus',
        data
    })
    return res
}

// 识记单词
export const reciteword = async (data) => {
    let res = await http.post({
        url: '/word/reciteword4',
        data
    })
    return res
}

// 提交后台打印
export const printList = async (data) => {
    let res = await http.post({
        url: '/word/prints',
        data
    })
    return res
}


// 词库列表
export const wordPackages = async (data) => {
    let res = await http.post({
        url: '/word/wordpackages',
        data
    })
    return res
}

// 单词包导入
export const checkHasword =  (data) => {
    let res = http.post({
        url: '/word/checkhasword',
        data
    })
    return res
}

// 单词识记完成
export const distinguiShword =  (data) => {
    let res = http.post({
        url: '/word/distinguishword4',
        data
    })
    return res
}
//双减单词提交
export const doubleminusdistinguiShword =  (data) => {
    let res = http.post({
        url: '/Doubleminus/distinguishword4',
        data
    })
    return res
}

// 九宫格单词
export const squareWord =  (data) => {
    let res = http.post({
        url: '/word/squareword' + `?page=${data.page}&package_id=${data.package_id}&type=${data.package_id}`,
        data
    })
    return res
}
//分类重新学习课程
export const getcompletelist =  (data) => {
    let res = http.post({
        url: '/Doubleminus/getcompletelist',
        data
    })
    return res
}
//超过三轮的只能选择学习对应单词
export const refreshnewround =  (data) => {
    let res = http.post({
        url: '/Doubleminus/refreshnewround',
        data
    })
    return res
}

// 单词识记
export const wordPackage =  (data) => {
    let res = http.post({
        url: '/word/wordpackage',
        data
    })
    return res
}
// 开启新一轮
export const startnewround =  (data) => {
    let res = http.post({
        url: '/Doubleminus/startnewround',
        data
    })
    return res
}

// 教学码
export const validationCode =  (data) => {
    let res = http.post({
        url: '/grammar/validationCode',
        data
    })
    return res
}

// 单词筛查提交
export const screenWordsSubmit =  (data) => {
    let res = http.post({
        url: '/word/screenwordssubmit',
        data
    })
    return res
}

// 提交一眼会的词
export const distingUishword =  (data) => {
    let res = http.post({
        url: '/word/distinguishword4',
        data
    })
    return res
}

// 自主复习
export const getreviewWords =  (data) => {
    let res = http.post({
        url: '/word/getreviewwords',
        data
    })
    return res
}
//校验是否是切换课程
export const checkisnow =  (data) => {
    let res = http.post({
        url: '/Doubleminus/checkisnow',
        data
    })
    return res
}
//重置学习记录
export const refreshword =  (data) => {
    let res = http.post({
        url: '/Doubleminus/refreshword',
        data
    })
    return res
}

// 中断学习
export const middleStop =  (data) => {
    let res = http.post({
        url: '/index/middlestop',
        data
    })
    return res
}

// 助记视频
export const wordVideo =  (data) => {
    let res = http.post({
        url: '/word/wordvideo',
        data
    })
    return res
}

// 结束识记
export const stopStudy =  (data) => {
    let res = http.post({
        url: '/word/stopstudy',
        data
    })
    return res
}

// 学习报告
export const getReport =  (data) => {
    let res = http.post({
        url: '/word/getreport',
        data
    })
    return res
}